const Koa = require("koa");
const parser = require("koa-parser");
const app = new Koa();
const router = require("koa-router")();


const controllers = require("../controllers/default");


app.use(parser());

app.use(controllers());

router.get('/',async(ctx,next)=>{
    ctx.body ="这是我的首页哈哈哈"
})

app.use(router.routes());


app.listen(3000,()=>{
    console.log("服务器运行的地址是:http://127.0.0.1:3000");
})